package com.rolerealm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rolerealm.domain.entity.UserPreferenceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserPreferenceMapper extends BaseMapper<UserPreferenceEntity> {

    @Select("select * from user_preferences where user_id = #{userId} limit 1")
    UserPreferenceEntity selectByUserId(Long userId);
}


